package com.ruoyi.app.mapper;

import com.ruoyi.app.domain.PromotionInfo;
import com.ruoyi.app.domain.PromotionInfoExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface PromotionInfoMapper {
    int countByExample(PromotionInfoExample example);

    int deleteByExample(PromotionInfoExample example);

    int deleteByPrimaryKey(Long id);

    int insert(PromotionInfo record);

    int insertSelective(PromotionInfo record);

    List<PromotionInfo> selectByExample(PromotionInfoExample example);

    PromotionInfo selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") PromotionInfo record, @Param("example") PromotionInfoExample example);

    int updateByExample(@Param("record") PromotionInfo record, @Param("example") PromotionInfoExample example);

    int updateByPrimaryKeySelective(PromotionInfo record);

    int updateByPrimaryKey(PromotionInfo record);

    List<PromotionInfo> getPromotionList(Map<String, Object> params);
}